projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be1407
)
init: Add new explicit temporary directory
author
Colin Walters
<walters@verbum.org>
Tue, 8 Nov 2011 23:13:05 +0000
(18:13 -0500)
committer
Colin Walters
<walters@verbum.org>
Tue, 8 Nov 2011 23:58:11 +0000
(18:58 -0500)
This will be used to store all tempoary files.
ostree/ot-builtin-init.c
patch
|
blob
|
history
diff --git
a/ostree/ot-builtin-init.c
b/ostree/ot-builtin-init.c
index 1e8580136fda424225d3bd7c11faa4efb3af23ae..816798d23da689ace1e653aae365126faffcb1a9 100644
(file)
--- a/
ostree/ot-builtin-init.c
+++ b/
ostree/ot-builtin-init.c
@@
-72,6
+72,11
@@
ostree_builtin_init (int argc, char **argv, const char *repo_path, GError **erro
goto out;
g_clear_object (&child);
+ child = g_file_get_child (repodir, "tmp");
+ if (!g_file_make_directory (child, NULL, error))
+ goto out;
+ g_clear_object (&child);
+
child = g_file_get_child (repodir, "refs");
if (!g_file_make_directory (child, NULL, error))
goto out;